<!-- 天猫达播品项输入表 -->
<template>
  <div class="mainTable">
    <BaseTable :query="query" :importName="importName" :importURL="importURL" :tableItems="tableItems"
      :updateItems="updateItems" :optionList="optionList" :methodParam="methodParam" :commitUrl="commitUrl" :Btn="Btn" menuName="logRecord"
      pageName="mainTable" />
  </div>
</template>
<script>
import dayjs from "dayjs"
import BaseTable from "@/components/table/importTable.vue";
export default {
  name: "tmdbpxsrb",
  data() {
    return {
      //后端人员修改-S
      //查询参数
      query: [
      {
          prop: "searchTime", type: "time", placeholder: "",
          value: [dayjs(new Date()).add(-1, 'month').format("YYYY-MM-DD"), dayjs(new Date()).format("YYYY-MM-DD")],
          name: "查询时间"
        }
      ],
      //表格表头
      tableItems: [
        { name: "时间（日）", prop: "时间（日）", align: "left" },
        { name: "直播名称", prop: "直播名称", align: "left" },
        { name: "主播昵称", prop: "主播昵称", align: "left" },
        { name: "开播时间", prop: "开播时间", align: "left" },
        { name: "场次ID", prop: "场次ID", align: "left" },
        { name: "商品ID", prop: "商品ID", align: "left" },
        { name: "商品名称", prop: "商品名称", align: "left" },
        { name: "费用备注", prop: "费用备注", align: "left", type: "input" },
        { name: "服务费（含税）", prop: "服务费（含税）", type: "input" },
        { name: "直播机制", prop: "直播机制", align: "left", type: "input" },
        { name: "直播佣金比例", prop: "直播佣金比例",  type: "input" },
      ],
      //增删查改的对象属性
      updateItems: [//edit是回复
        { name: "文件名称", prop: "fileName", type: "input", disabled: true },
        { name: "上传类型", prop: "uploadType", type: "select" },
        { name: "备注", prop: "remark", type: "textarea" },
        { name: "上传文件", prop: "fileAdd", type: "upload" },
      ],
      //增删查改的对象属性的下拉select或者级联cascader
      optionList: {
      },
      //增删查改方法参数
      methodParam: "getTmallFlagshipStoreLivestreamerLivingRoomGoodDayInput",
      commitUrl: "commitTmallFlagshipStoreLivestreamerLivingRoomGoodDay",
      //自定义btn功能
      Btn: {
        search: true, //查询按钮
        add: false, //添加按钮
        edit: false, //回复按钮
        detail: false, //详情按钮
        delete: false, //删除按钮
        deletes: false, //批量删除按钮
        export: true, //导出按钮
        templateDownload: false, //模板下载按钮
        upload: false, //上传按钮
        commit: true,
      },
      //后端人员修改-E
      importName: "天猫旗舰店达播商品日表输入表",
      importURL: "uploadTmallFlagshipStoreLivestreamerLivingRoomGoodDayInput"
    };
  },
  components: {
    BaseTable
  },
  created() {
    let _this = this

  }
};
</script>
<style scoped lang="less">
.mainTable {
  background-color: #f1f2f9;
}
</style>
  